CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5Widgets REQUIRED)


include_directories(${PROJECT_ROOT}/LitePlayer/include)
link_directories(${PROJECT_ROOT}/lib)
link_directories(${FFMPEG_DIR}/lib)
link_directories(${FFMPEG_DIR}/bin)
link_directories(${THIRD_PARTY}/SDL2/lib/x86)
link_directories(${THIRD_PARTY}/SDL2/lib)

aux_source_directory(. SOURCE)

SET(EXECUTABLE_TYPE "")

if (WIN32)
	SET(EXECUTABLE_TYPE "WIN32")
endif()

add_executable(QtMultiPlayer ${EXECUTABLE_TYPE} ${SOURCE})

# Use the Widgets module from Qt 5.
target_link_libraries(QtMultiPlayer Qt5::Widgets Qt5::Core LitePlayer SDL2 )

